package safari.model.message;

import org.mybatis.spring.SqlSessionTemplate;

public class ReadReportDaoImpl implements ReadReportDao {
	private SqlSessionTemplate sqlSessionTemplate;
	public ReadReportDaoImpl(SqlSessionTemplate sqlSessionTemplate){
		this.sqlSessionTemplate=sqlSessionTemplate;
	}

	@Override
	public String getDidRead(int no) {
		return sqlSessionTemplate.selectOne("message.getDidRead",no);
	}

	@Override
	public int updateDidRead(MessageVO msgvo) {
		return sqlSessionTemplate.update("message.updateDidRead",msgvo);
	}
}
